package com.jasic.common.exception;

/**
 * 异常信息存储类
 *
 * @author BrainstorM
 *
 */
public class HandleException extends BaseException {

    // 序列化
    private static final long serialVersionUID = -2824353315225211749L;

    /**
     * 构造函数
     *
     */
    public HandleException() {
    }

    /**
     * 构造函数
     *
     */
    public HandleException(String message) {
        excetionMessage = message;
    }
    /**
     * 构造函数
     *
     * @param code
     * @param message
     */
    public HandleException(String code, String message) {
        exceptionCode = code;
        excetionMessage = message;
    }

    /**
     * 构造函数
     *
     * @param throwable
     */
    public HandleException(Throwable throwable) {
        excetionMessage = throwable.getMessage();
    }

}
